package web.api.common.model;

import java.util.UUID;

/**
 * @author Jin Zheng
 * @since 1.0 2020-08-31
 */
public class Token
{
	private int expire = 120 * 60;
	private String token;

	public Token()
	{
		this(UUID.randomUUID().toString());
	}

	public Token(String token)
	{
		this.token = token;
	}

	public int getExpire()
	{
		return expire;
	}

	public void setExpire(int expire)
	{
		this.expire = expire;
	}

	public String getToken()
	{
		return token;
	}

	public void setToken(String token)
	{
		this.token = token;
	}
}
